Optimal. Leaf size=51 \[ \frac {1}{10} \tan ^{-1}\left (\frac {5 (2+x)}{2 \sqrt {-7+2 x+5 x^2}}\right )+\frac {1}{5} \tanh ^{-1}\left (\frac {5 (1+x)}{\sqrt {-7+2 x+5 x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.148, Rules used = {1000, 1043,
209, 213} \begin {gather*} \frac {1}{10} \text {ArcTan}\left (\frac {5 (x+2)}{2 \sqrt {5 x^2+2 x-7}}\right )+\frac {1}{5} \tanh ^{-1}\left (\frac {5 (x+1)}{\sqrt {5 x^2+2 x-7}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 213
Rule 1000
Rule 1043
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {-7+2 x+5 x^2} \left (8+12 x+5 x^2\right )} \, dx &=-\left (\frac {1}{50} \int \frac {-100-50 x}{\sqrt {-7+2 x+5 x^2} \left (8+12 x+5 x^2\right )} \, dx\right )+\frac {1}{50} \int \frac {-50-50 x}{\sqrt {-7+2 x+5 x^2} \left (8+12 x+5 x^2\right )} \, dx\\ &=400 \text {Subst}\left (\int \frac {1}{160000+100 x^2} \, dx,x,\frac {200+100 x}{\sqrt {-7+2 x+5 x^2}}\right )+1600 \text {Subst}\left (\int \frac {1}{-640000+100 x^2} \, dx,x,\frac {-400-400 x}{\sqrt {-7+2 x+5 x^2}}\right )\\ &=\frac {1}{10} \tan ^{-1}\left (\frac {5 (2+x)}{2 \sqrt {-7+2 x+5 x^2}}\right )+\frac {1}{5} \tanh ^{-1}\left (\frac {5 (1+x)}{\sqrt {-7+2 x+5 x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.16, size = 53, normalized size = 1.04 \begin {gather*} \frac {1}{10} \tan ^{-1}\left (\frac {5+\frac {5 x}{2}}{\sqrt {-7+2 x+5 x^2}}\right )+\frac {1}{5} \tanh ^{-1}\left (\frac {5+5 x}{\sqrt {-7+2 x+5 x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(143\) vs.
\(2(41)=82\).
time = 0.39, size = 144, normalized size = 2.82
method | result | size |
default | \(-\frac {\sqrt {-\frac {4 \left (x +2\right )^{2}}{\left (-1-x \right )^{2}}+9}\, \left (2 \arctanh \left (\frac {\sqrt {-\frac {4 \left (x +2\right )^{2}}{\left (-1-x \right )^{2}}+9}}{5}\right )+\arctan \left (\frac {5 \sqrt {-\frac {4 \left (x +2\right )^{2}}{\left (-1-x \right )^{2}}+9}\, \left (x +2\right )}{2 \left (\frac {4 \left (x +2\right )^{2}}{\left (-1-x \right )^{2}}-9\right ) \left (-1-x \right )}\right )\right )}{10 \sqrt {-\frac {\frac {4 \left (x +2\right )^{2}}{\left (-1-x \right )^{2}}-9}{\left (1+\frac {x +2}{-1-x}\right )^{2}}}\, \left (1+\frac {x +2}{-1-x}\right )}\) | \(144\) |
trager | \(\RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right ) \ln \left (\frac {129600 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right )^{2} x -8750 \sqrt {5 x^{2}+2 x -7}\, \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right )-18630 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right ) x +30330 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right )+155 \sqrt {5 x^{2}+2 x -7}-1105 x -5729}{20 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right ) x -5 x -4}\right )+\frac {\ln \left (\frac {129600 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right )^{2} x +8750 \sqrt {5 x^{2}+2 x -7}\, \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right )-33210 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right ) x -30330 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right )-1595 \sqrt {5 x^{2}+2 x -7}+353 x +337}{20 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right ) x +x +4}\right )}{5}-\ln \left (\frac {129600 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right )^{2} x +8750 \sqrt {5 x^{2}+2 x -7}\, \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right )-33210 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right ) x -30330 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right )-1595 \sqrt {5 x^{2}+2 x -7}+353 x +337}{20 \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right ) x +x +4}\right ) \RootOf \left (80 \textit {\_Z}^{2}-16 \textit {\_Z} +1\right )\) | \(355\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 154 vs.
\(2 (41) = 82\).
time = 3.34, size = 154, normalized size = 3.02 \begin {gather*} \frac {1}{20} \, \arctan \left (\frac {27 \, x^{2} + 20 \, \sqrt {5 \, x^{2} + 2 \, x - 7} {\left (x + 2\right )} + 36 \, x}{31 \, x^{2} + 16 \, x - 56}\right ) + \frac {1}{20} \, \arctan \left (-\frac {27 \, x^{2} - 20 \, \sqrt {5 \, x^{2} + 2 \, x - 7} {\left (x + 2\right )} + 36 \, x}{31 \, x^{2} + 16 \, x - 56}\right ) + \frac {1}{20} \, \log \left (\frac {15 \, x^{2} + 5 \, \sqrt {5 \, x^{2} + 2 \, x - 7} {\left (x + 1\right )} + 26 \, x + 9}{x^{2}}\right ) - \frac {1}{20} \, \log \left (\frac {15 \, x^{2} - 5 \, \sqrt {5 \, x^{2} + 2 \, x - 7} {\left (x + 1\right )} + 26 \, x + 9}{x^{2}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {\left (x - 1\right ) \left (5 x + 7\right )} \left (5 x^{2} + 12 x + 8\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 205 vs.
\(2 (41) = 82\).
time = 4.96, size = 205, normalized size = 4.02 \begin {gather*} -\frac {1}{10} \, \arctan \left (-\frac {5 \, \sqrt {5} x + 6 \, \sqrt {5} - 5 \, \sqrt {5 \, x^{2} + 2 \, x - 7} + 5}{2 \, {\left (\sqrt {5} + 5\right )}}\right ) - \frac {1}{10} \, \arctan \left (\frac {5 \, \sqrt {5} x + 6 \, \sqrt {5} - 5 \, \sqrt {5 \, x^{2} + 2 \, x - 7} - 5}{2 \, {\left (\sqrt {5} - 5\right )}}\right ) + \frac {1}{10} \, \log \left (5 \, {\left (\sqrt {5} x - \sqrt {5 \, x^{2} + 2 \, x - 7}\right )}^{2} + 2 \, {\left (\sqrt {5} x - \sqrt {5 \, x^{2} + 2 \, x - 7}\right )} {\left (6 \, \sqrt {5} + 5\right )} + 20 \, \sqrt {5} + 65\right ) - \frac {1}{10} \, \log \left (5 \, {\left (\sqrt {5} x - \sqrt {5 \, x^{2} + 2 \, x - 7}\right )}^{2} + 2 \, {\left (\sqrt {5} x - \sqrt {5 \, x^{2} + 2 \, x - 7}\right )} {\left (6 \, \sqrt {5} - 5\right )} - 20 \, \sqrt {5} + 65\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {1}{\sqrt {5\,x^2+2\,x-7}\,\left (5\,x^2+12\,x+8\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________